package com.tjec.project.businessWorkbench.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.tjec.framework.aspectj.lang.annotation.Excel;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tjec.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModelProperty;

/**
 * 项目文档目录对象 bms_project_doc_catalog
 * 
 * @author pangyongfeng
 * @date 2020-04-26
 */
public class BmsProjectDocCatalog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id 主键 */
	@JsonIgnore
    private String id;
	
	/**
	 * 子任务集合
	 */
	private List<BmsProjectDocCatalog> children = new ArrayList<BmsProjectDocCatalog>();

    /** 业务ID */
    //@Excel(name = "业务ID")
	@ApiModelProperty(value = "业务ID")
    private String businessId;

    /** 上级目录 上级目录 */
    //@Excel(name = "上级目录")
	@ApiModelProperty(value = "上级目录")
    private String parentId;
    
    /** 上级目录名称 */
    @Excel(name = "上级目录名称")
	@ApiModelProperty(value = "上级目录名称")
    private String parentName;

    /** 目录名称 目录名称 */
    @Excel(name = "目录名称")
	@ApiModelProperty(value = "目录名称")
    private String name;

    /** 排序 排序 */
    @Excel(name = "排序")
	@ApiModelProperty(value = "排序")
    private Double sort;

    /** guid */
   // @Excel(name = "guid")
	@ApiModelProperty(value = "guid")
    private String guid;
    
	@ApiModelProperty(value = "isEdit")
    private String isEdit;

	/**
	 * 文件数量
	 */
    private Integer counts;
    
    public String delFlag;

    public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	/**
     * 项目文档
     */
    private List<BmsProjectDoc> projectDocList;

    private String projectId;

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public List<BmsProjectDoc> getProjectDocList() {
        return projectDocList;
    }

    public void setProjectDocList(List<BmsProjectDoc> projectDocList) {
        this.projectDocList = projectDocList;
    }

    public String getIsEdit() {
		return isEdit;
	}

	public void setIsEdit(String isEdit) {
		this.isEdit = isEdit;
	}

	public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setBusinessId(String businessId) 
    {
        this.businessId = businessId;
    }

    public String getBusinessId() 
    {
        return businessId;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSort(Double sort) 
    {
        this.sort = sort;
    }

    public Double getSort() 
    {
        return sort;
    }
    public void setGuid(String guid) 
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("businessId", getBusinessId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("guid", getGuid())
            .append("parentName", getParentName())
            .append("counts", getCounts())
            .append("delFlag",getDelFlag())
            .toString();
    }

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public List<BmsProjectDocCatalog> getChildren() {
		return children;
	}

	public void setChildren(List<BmsProjectDocCatalog> children) {
		this.children = children;
	}

	public Integer getCounts() {
		return counts;
	}

	public void setCounts(Integer counts) {
		this.counts = counts;
	}
}
